package com.candy.service.impl;

import com.candy.bean.UserInfomation;
import com.candy.dao.UserInfomationMapper;
import com.candy.service.UserInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author donglin
 * @Title:
 * @类名: UserInfoServiceImpl
 * @date 2021/1/8
 */
@Service
public class UserInfoServiceImpl implements UserInfoService {
    @Resource
    UserInfomationMapper userInfomationMapper;
    @Override
    public List<UserInfomation> doUserLogin(UserInfomation userInfomation) {
//        "select * from studentinfo where userName ='"+userName+"' and userPwd ='"+userPwd+"'"
        List<UserInfomation> lstUser= userInfomationMapper.selectUserInfo4login(userInfomation);

        return lstUser;
    }
}
